package Beans.EJB_Filters;


import java.util.Date;

/**
 * Created by IntelliJ IDEA.
 * User: mchebanenko
 * Date: 11-Jan-2011
 * Time: 2:05:11 PM
 * To change this template use File | Settings | File Templates.
 */

public class RoomListFltEntity {

    private Date dateFrom;
    private Date dateTo;
    private float price1;
    private float price2;
    private String places;
    private Integer[] status;
    private Integer[] style;


    public Date getDateFrom() {
        if(dateFrom==null){
            dateFrom = new Date(new java.util.Date().getTime());
        }
        return dateFrom;
    }

    public void setDateFrom(Date dateFrom) {
        this.dateFrom = dateFrom;
    }

    public Date getDateTo() {

        if(dateTo==null){
            dateTo = new Date(new java.util.Date().getTime());
        }
        return dateTo;
    }

    public void setDateTo(Date dateTo) {
        this.dateTo = dateTo;
    }

    public float getPrice1() {
        return price1;
    }

    public void setPrice1(float price1) {
        this.price1 = price1;
    }

    public float getPrice2() {
        return price2;
    }

    public void setPrice2(float price2) {
        this.price2 = price2;
    }

    public String getPlaces() {
        return places;
    }

    public void setPlaces(String places) {
        this.places = places;
    }

    public Integer[] getStatus() {
        if (status == null){
            status = new Integer[1];
            status[0] = 1;
        }
        return status;
    }

    public void setStatus(Integer[] status) {
        this.status = status;
    }

    public Integer[] getStyle() {
        if (style == null){
            style = new Integer[1];
            style[0] =0;
        }
        return style;
    }

    public void setStyle(Integer[] style) {
        this.style = style;
    }

}
